package com.fh.service.impl;/**
 * 描述:
 * Author:袁亚强
 * Date:2021/12/518:04
 */

import com.fh.entity.po.Org;
import com.fh.mappers.OrgMapper;
import com.fh.service.OrgService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * created by macro on 2021/12/5,
 */
@Service
public class OrgServiceImpl implements OrgService {
    @Resource
    private OrgMapper orgMapper;
    @Override
    public void upOrg(Org org) {
            orgMapper.upOrg(org);
    }

    @Override
    public void addOrg(Org org) {
        org.setCreateDate(new Date());
        org.setIsdel(0);
        orgMapper.addOrg(org);
    }

    @Override
    public List<Org> queryOrg() {
        return orgMapper.queryOrg();
    }

    @Override
    public List<Org> queryOrgAll() {
        return orgMapper.queryOrgAll();
    }

}
